<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments::head(~{::title})">
		<meta charset="utf-8" />
		<title>标签</title>
		<script src="  https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js " type="text/javascript" charset="utf-8"></script>
		
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">

			<link rel="stylesheet" href="../static/css/mi1.css">
	</head>
	<body>
		
		
		<nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small" th:replace="_fragments::menu(3)" >
			<div class="ui container">
			<div class="ui menu inverted secondary stackable">
				<h2 class="ui teal header item"><i class="home icon"></i>脏丽丽</h2>
				<a href="#" class="m-item m-mobile-hide item"><i class="mini idea icon"></i>首页</a>
				<a href="#" class="m-item m-mobile-hide item"><i class="mini idea icon"></i>分类</a>
				<a href="#" class=" m-item m-mobile-hide item"><i class="mini tags icon"></i>标签</a>
				<a href="#" class="m-item m-mobile-hide item"><i class="mini clone icon"></i>归档</a>
				<a href="#" class="m-item m-mobile-hide item"><i class="mini info icon"></i>关于我</a>
				<div class="right item m-mobile-hide">
					<div class = "ui icon transparent inverted input">
						<input type="text" placeholder="搜我吧" />
						<i class="search link icon"></i>
					</div>
				</div>
			</div>
			</div>
			<a href="#" class="ui black menu toggle icon button m-right-top m-mobile-show">
				<i class="sidebar icon"></i>
			</a>
		</nav>
		<!-- 中间内容 -->
		<div class="m-container-sm m-padded-tb-big">
			<!-- header -->
			<div class="ui container">
				<div class="ui top attached segment">
					<div class="ui grid middle two column grid">
						<div class="column">
							<h3 class="ui teal header">
								标签
							</h3>
						</div>
						<div class="right aligned column">
							共 <h3 class="ui orange header m-inline-block m-text-thin" th:text="${pageInfo.list.size()}">14</h3>篇
						</div>
					</div>
				</div>
				<div class="ui  segment attached m-padded-tb-large">
					<div class="ui labeled button m-margin-tb-tiny" th:each="tag : ${tags}">
						<a href="#" class="ui basic  button" th:classappend="${tag.id==activeTagId} ? 'teal'"  th:text="${tag.name}" th:href="@{/tags/{id}(id=${tag.getId()})}">思考和感悟</a>
						<div class="ui basic  left pointing label" th:classappend="${tag.id==activeTagId} ? 'teal':''"   th:text="${tag.getBlogs().size()}">24</div>
					</div>
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">开发者手册</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">开发者手册</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">开发者手册</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">开发者手册</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">开发者手册</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">清单</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">清单</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">清单</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">清单</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">清单</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">清单</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">清单</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
					<!--					<div class="ui labeled button m-margin-tb-tiny">-->
					<!--						<a href="#" class="ui basic  button">清单</a>-->
					<!--						<div class="ui basic  left pointing label">24</div>-->
					<!--					</div>-->
				</div>
				<br />
				<div class="ui attached segment ">
					<div class="ui segment vertical padded m-padded-tb-large" th:each="blog : ${pageInfo.getList()}">
						<div class="ui middle aligned mobile reversed stackable grid" >
							<div class="eleven wide column">
								<h3 class="ui header">
									<a href="#" th:href="@{/blog/{id}(id=${blog.id})}" class="m-black" th:text="${blog.title}">	你理解谁是小俊男嘛？
									</a>
								</h3>
								<p class="m-text" th:text="|${blog.description}....|">小俊男真的可以的老哥！我还是喜欢他</p>
								<div class="ui grid">
									<div class="eleven wide column">
										<div class="ui link list horizontal mini">
											<div class="item">
												<img src="https://picsum.photos/seed/picsum/100/100" th:src="@{${blog.user.avatar}}"  alt="" class="ui avatar image">
												<div class="content"><a class="header " th:text="${blog.user.nickname}">脏鸡鸡</a></div>
											</div>
											<div class="item">
												<i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd') }">2020-07-03</span>
											</div>
											<div class="item">
												<i class="eye icon"></i><span th:text="${blog.views}">2342</span>
											</div>
										</div>
									</div>
									<div class="row">
										<div class="column">
											<a href="#" th:href="@{/tags/{id}(id=${tag.id})}" class="ui  basic label m-padded-tb-mini m-text-thin" th:classappend="${tag.id==activeTagId} ? 'teal'" th:each="tag : ${blog.tags}" th:text="${tag.name}">方法论</a>
										</div>
									</div>
<!--									<div class="right aligned five wide column">-->
<!--										<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${blog.type.name}">认知升级</a>-->
<!--									</div>-->
								</div>
							</div>
							<div class="five wide column">
								<a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
									<img src="https://picsum.photos/seed/picsum/800/400" th:href="@{${blog.firstPicture}}" alt="" class="ui rounded image"/>
								</a>

							</div>
						</div>
					</div>
				</div>
				<div class="ui bottom attached segment">
					<div class="ui grid middle two column grid">
						<div class="column">
							<a href="#" class="ui teal basic mini button" th:href="@{/tags(pageNum=${pageInfo.hasPreviousPage}?${pageInfo.prePage}:1)}" th:unless="${pageInfo.isFirstPage}">上一页</a>
<!--							<a class="item" th:href="@{/admin/types(pageNum=${pageInfo.hasNextPage}?${pageInfo.nextPage}:${pageInfo.pages})}" th:unless="${pageInfo.isLastPage}">下一页</a>-->
						</div>
						<div class="right aligned column">
							<div class="column">
								<a href="#" class="ui teal basic mini button" th:href="@{/tags(pageNum=${pageInfo.hasNextPage}?${pageInfo.nextPage}:${pageInfo.pages})}" th:unless="${pageInfo.isLastPage}">下一页</a>
							</div>
						</div>
					</div>
				</div>
			</div>

		</div>
		<br />
		<br />
		<br />
		<footer class="ui inverted vertical segment m-padded-tb-massive" th:replace="_fragments::footer">
			<div class="ui center aligned  container">
			<div class="ui inverted divided grid stackable">
				<div class="three wide column">
					<div class="inverted ui link list">
					<div class="item">
						<img src="../static/img/小俊男.jpg" style="width:110px " alt="" class="ui rounded image">
						
					</div>
					</div>
				</div>
				<div class="three wide column">
					<div class="ui inverted link list">
						<h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
						<a href="#" class="item">用户登录</a>
						<a href="#" class="item">用户登录</a>
						<a href="#" class="item">用户登录</a>
					</div>
					
				</div>
				<div class="three wide column">
					<div class="ui inverted link list">
						<h4 class="ui inverted header m-text-thin m-text-spaced" >最新博客</h4>
						<a href="#" class="item">用户登录</a>
						<a href="#" class="item">用户登录</a>
						<a href="#" class="item">用户登录</a>
					</div>
					
				</div>
				<div class="seven wide column">
					<div class="ui inverted link list">
						<h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
						<p  class="m-text-thin m-text-spaced m-opacity-mini">这是脏丽丽的个人博客！里面有好多好玩的东西哟！</p>
					</div>
					
				</div>
				
			</div>
			<div class="ui inverted section divider"></div>
			<p class="m-text-thin m-text-spaced m-opacity-tiny">copy right 2019-2020</p>
			</div>
			
		</footer>
		<th:block th:replace="_fragments::script">

		</th:block>
		<script>
			$('.menu.toggle').click(function() {
				$('.m-item').toggleClass('m-mobile-hide');
			});
		</script>
	</body>
</html>
